home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
grafik
/
3d & render tools
/
irit
/
man
/
man6
/
cmorph.6
< prev
next >
Wrap
Text File
|
1996-07-16
|
2KB
|
66 lines
.TH CMORPH
6 "IRIT Version 6.0"
.SH NAME
CMORPH
CurveType CMORPH( CurveType Crv1, CurveType Crv2,
NumericType Method, NumericType Blend )
or
ListType CMORPH( CurveType Crv1, CurveType Crv2,
NumericType Method, NumericType Blend )
Creates a new curve which is a metamorph of the two given curves.
The two given curves must be compatible (see FFCOMPAT) before this blend
is invoked. Very useful if a sequence that "morphs" one curve to another
is to be created. Several methods of metamorphosis are supported according
to the value of Method,
0 Simple convex blend.
1 Corner/Edge cutting scheme, scaled to same curve length.
2 Corner/Edge cutting scheme, scaled to same bounding box.
3 Same as 1 but with filtering out of tangencies.
4 Same as 2 but with filtering out of tangencies.
5 Multiresolution decompsition based metamorphosis. See CMULTRES.
In Method 1, Blend is a number between zero (Crv1)
and one (Crv2) defining the similarity to Crv1 and Crv2,
respectively. A single curve is returned.
In Methods 2 to 5, Blend is a step size for the
metamorphosis operation and a whole list describing the entire
metamorphosis operation is returned.
Examples:
for ( i = 0, 1, 300,
c = CMORPH( crv1a, crv1b, 0, i / 300.0 ):
color( c, yellow ):
viewobj( c )
);
crvs = CMORPH( crv1a, crv1b, 2, 0.003 );
snoc( crv1b, crvs );
for ( i = 1, 1, sizeof( crvs ),
c = nth( crvs, i ):
color( c, yellow ):
viewobj( c )
);
Turtle2 = ffmatch( Wolf, Turtle, 20, 100, 2, false, 2 );
ffcompat( Wolf, Turtle2 );
for ( i = 0, 1, 25,
c = CMORPH( Wolf, Turtle2, 0, i / 25 ):
color( c, yellow ):
viewobj( c )
);
creates three metamorphosis animation sequences, one that is based on
a convex blend, one that is based on corner/edge cutting scheme.
See alost SMORPH, and a third that employs FFMATCH.